package com.xgimi.open.skill.datamanager.service.api;

import com.xgimi.commons.base.Result;
import com.xgimi.open.skill.datamanager.service.request.SkillVersionReqDTO;
import com.xgimi.open.skill.datamanager.service.response.SkillPublishRespDTO;
import com.xgimi.open.skill.datamanager.service.response.SkillVersionRespDTO;
import com.xgimi.open.skill.datamanager.service.response.page.PageResult;

/**
 * @author coderzpw.zhang
 * @version 1.0
 * @description 描述
 * @date 2023/3/3 14:20
 */
public interface SkillVersionRpcService {
    public Result<SkillPublishRespDTO> publishSkillVersion(SkillVersionReqDTO skillVersionReqDTO);

    public Result<PageResult<SkillVersionRespDTO>> publishedList(SkillVersionReqDTO skillVersionReqDTO);

    public Result<SkillVersionRespDTO> queryById(SkillVersionReqDTO skillVersionReqDTO);

    public Result<SkillVersionRespDTO> getTestSkillVersion(Long skillId);

    public Result<SkillVersionRespDTO> getPublishedMaxVersion(Long skillId);

    public Result<SkillVersionRespDTO> getTestSkillVersion(String skillBusinessId);

    public Result<SkillVersionRespDTO> getPublishedMaxVersion(String skillBusinessId);

    public Result<Boolean> delete(SkillVersionReqDTO skillVersionReqDTO);

}
